package canss.webservice.controls;


import org.apache.beehive.controls.api.bean.ControlInterface;

import canss.webservice.model.Feed;

import weblogic.jdbc.SQLExceptionWrapper;

@ControlInterface
public interface FeedControl
{
	public final static Integer INITIALFEEDSTATUS = 0;

	Boolean createFeedUri(String _pid, String _mid, String _uri)
			throws SQLExceptionWrapper;

	Feed[] getFeedByMultiple(String _pid, String _mid)
			throws SQLExceptionWrapper;

	Feed[] getFeedByUri(String _uri) throws SQLExceptionWrapper;

	Boolean checkFeedExistenceByPIDMIDINDEX(String _pid, String _mid,
			String _index) throws SQLExceptionWrapper;

	Integer editFeedMID(String _pid, Integer _index, String _newmid)
			throws SQLExceptionWrapper;

	Integer editFeedMID(String _pid, String _newmid) throws SQLExceptionWrapper;

	Feed[] getFeedByStatus(Integer _feedstatus)
			throws SQLExceptionWrapper;

	Feed[] getFeedStatusByPID(String _pid) throws SQLExceptionWrapper,
			RuntimeException;

	
	int setFeedRulesByPIDURI(String _pid, String _uri, String _ruleid)
			throws SQLExceptionWrapper;

	Feed[] getEntireFeeds() throws SQLExceptionWrapper;

	Boolean setFeedStatusByPID(String _pid, String _uri, Integer _status)
			throws SQLExceptionWrapper, RuntimeException;

	Boolean deleteFeed(String _pid, String _mid, String _feeduri)
			throws SQLExceptionWrapper;

}